<html>
<head><meta charset="utf-8"><title>must_bind · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/must_bind.html">must_bind</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="215262980"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/must_bind/near/215262980" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> _Vi <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/must_bind.html#215262980">(Nov 01 2020 at 21:24)</a>:</h4>
<p>Is it a good idea to just go and try implementing my <a href="https://internals.rust-lang.org/t/pre-rfc-must-bind/12658">must_bind pre-RFC</a>, then submit a possibly under-designed prototype-ish pull request?</p>
<p>The discussion on the pre-RFC thread just stopped without any conclusion.</p>



<a name="215263122"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/must_bind/near/215263122" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> _Vi <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/must_bind.html#215263122">(Nov 01 2020 at 21:28)</a>:</h4>
<p>The feature is solely about improving diagnostics, so maybe a real RFC is not needed until stabilisation.</p>
<p>(in short: it's about <code>#[must_bind]</code> attribute that supplements <code>#[must_use]</code> and also warns on <code>let _ = acquire_semaphore_guard();</code>)</p>



<a name="215263521"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/must_bind/near/215263521" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/must_bind.html#215263521">(Nov 01 2020 at 21:38)</a>:</h4>
<p>Maybe ask in <a class="stream" data-stream-id="213817" href="/#narrow/stream/213817-t-lang">#t-lang</a>?</p>



<a name="215263915"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/must_bind/near/215263915" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/must_bind.html#215263915">(Nov 01 2020 at 21:48)</a>:</h4>
<p>FWIW, since this is basically a new lint, I wouldn't expect it to need a full RFC, just an FCP or maybe an MCP if t-lang has MCPs</p>



<a name="215263935"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/must_bind/near/215263935" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> _Vi <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/must_bind.html#215263935">(Nov 01 2020 at 21:49)</a>:</h4>
<p>Asked at t-lang: <a href="#narrow/stream/213817-t-lang/topic/must_bind">https://rust-lang.zulipchat.com/#narrow/stream/213817-t-lang/topic/must_bind</a></p>
<p>Shall I somehow close this topic on Zulip?</p>



<a name="215263936"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/must_bind/near/215263936" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/must_bind.html#215263936">(Nov 01 2020 at 21:49)</a>:</h4>
<p>(FCP: you do the implementation and people decide on the PR. MCP: you say "I want to do this" and the lang team either says yes or no, but there's no checkboxes and no community feedback period)</p>



<a name="215263940"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/must_bind/near/215263940" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/must_bind.html#215263940">(Nov 01 2020 at 21:49)</a>:</h4>
<p>It adds a new attribute though</p>



<a name="215263945"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/must_bind/near/215263945" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/must_bind.html#215263945">(Nov 01 2020 at 21:49)</a>:</h4>
<p>Well, yes? That's why it goes through t-lang</p>



<a name="215263947"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/must_bind/near/215263947" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/must_bind.html#215263947">(Nov 01 2020 at 21:49)</a>:</h4>
<p><span class="user-mention silent" data-user-id="343656">_Vi</span> <a href="#narrow/stream/182449-t-compiler.2Fhelp/topic/must_bind/near/215263935">said</a>:</p>
<blockquote>
<p>Asked at t-lang: <a href="#narrow/stream/213817-t-lang/topic/must_bind">https://rust-lang.zulipchat.com/#narrow/stream/213817-t-lang/topic/must_bind</a></p>
<p>Shall I somehow close this topic on Zulip?</p>
</blockquote>
<p>Unfortunately I don't believe there's a way to do that</p>



<a name="215263953"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/must_bind/near/215263953" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/must_bind.html#215263953">(Nov 01 2020 at 21:49)</a>:</h4>
<p><span class="user-mention silent" data-user-id="232545">Joshua Nelson</span> <a href="#narrow/stream/182449-t-compiler.2Fhelp/topic/must_bind/near/215263945">said</a>:</p>
<blockquote>
<p>Well, yes? That's why it goes through t-lang</p>
</blockquote>
<p>Yeah, just wanted to make sure that was clear :)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>